// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) KALEIDOS INC

@use "refactor/common-refactor.scss" as deprecated;

.libraries {
  margin-top: deprecated.$s-8;
  width: 100%;
}

.selected-colors {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: deprecated.$s-4;
  justify-content: space-between;
  overflow: auto;
  margin-top: deprecated.$s-8;
  max-height: deprecated.$s-168;
}

.add-color-btn,
.palette-btn {
  @extend .button-secondary;
  height: deprecated.$s-24;
  width: deprecated.$s-24;
  border-radius: deprecated.$br-circle;
  padding: 0;
  svg {
    @extend .button-icon;
  }
}

.selected-colors::after {
  content: "";
  flex: auto;
}

.select-wrapper {
  overflow: initial;
}
